<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>社医堂</title>
<link rel="stylesheet" type="text/css" href="../../../css/api.css" />
<link rel="stylesheet" type="text/css" href="../../../css/hui.css" />
<link rel="stylesheet" type="text/css" href="../../../css/iconfont.css" />
</head>
<body>
<header class="hui-header">
	<div id="hui-back"></div>
	<h1>资料修改</h1>
	<div onclick="saoma()" class="iconfont iconsaoma" id="hui-saoma"></div>
</header>



<footer id="hui-footer"></footer>

<script src="../../../script/hui.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../script/hui-swipe.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../script/api.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../script/stm.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
apiready = function() {

	var header = $api.dom('header'); // 获取 header 标签元素
    var footer = $api.dom('footer'); // 获取 footer 标签元素
	var headerH = $api.fixStatusBar(header);
	var footerH = $api.fixTabBar(footer);

	setfooter2(0)	
			
	api.openFrame({
		name: 'edit_frm',
		url: 'edit_frm.html',
		bounces: false,
		rect: { // 推荐使用Margin布局，用于适配屏幕的动态变化
			marginTop: headerH, // main页面距离win顶部的高度
			marginBottom: footerH, // main页面距离win底部的高度
			w: 'auto' // main页面的宽度 自适应屏幕宽度
		}
	});
	
};

function saoma(){
	var FNScanner = api.require('FNScanner');
	FNScanner.open({
		autorotation: true
	}, function(ret, err) {
		if (ret) {
			alert(JSON.stringify(ret));
		} else {
			alert(JSON.stringify(err));
		}
	});
}

</script>

</body>
</html>